0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 1 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxRNTS
↳13 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 402 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 164 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 4 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 161 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 47 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 216 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 56 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 1690 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 671 ms)
↳36 CpxRNTS
↳37 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳38 CpxRNTS
↳39 IntTrsBoundProof (UPPER BOUND(ID), 82 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 1 ms)
↳42 CpxRNTS
↳43 FinalProof (⇔, 0 ms)
↳44 BOUNDS(1, n^2)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
inc(0) → 0
inc(s(x)) → s(inc(x))
log(x) → log2(x, 0)
log2(x, y) → if(le(x, s(0)), x, inc(y))
if(true, x, s(y)) → y
if(false, x, y) → log2(half(x), y)
half(0) → 0 [1]
half(s(0)) → 0 [1]
half(s(s(x))) → s(half(x)) [1]
le(0, y) → true [1]
le(s(x), 0) → false [1]
le(s(x), s(y)) → le(x, y) [1]
inc(0) → 0 [1]
inc(s(x)) → s(inc(x)) [1]
log(x) → log2(x, 0) [1]
log2(x, y) → if(le(x, s(0)), x, inc(y)) [1]
if(true, x, s(y)) → y [1]
if(false, x, y) → log2(half(x), y) [1]
half(0) → 0 [1]
half(s(0)) → 0 [1]
half(s(s(x))) → s(half(x)) [1]
le(0, y) → true [1]
le(s(x), 0) → false [1]
le(s(x), s(y)) → le(x, y) [1]
inc(0) → 0 [1]
inc(s(x)) → s(inc(x)) [1]
log(x) → log2(x, 0) [1]
log2(x, y) → if(le(x, s(0)), x, inc(y)) [1]
if(true, x, s(y)) → y [1]
if(false, x, y) → log2(half(x), y) [1]
half :: 0:s → 0:s 0 :: 0:s s :: 0:s → 0:s le :: 0:s → 0:s → true:false true :: true:false false :: true:false inc :: 0:s → 0:s log :: 0:s → 0:s log2 :: 0:s → 0:s → 0:s if :: true:false → 0:s → 0:s → 0:s |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
log
log2
if
half
le
inc
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
0 => 0
true => 1
false => 0
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(x) :|: x >= 0, z = 1 + (1 + x)
if(z, z', z'') -{ 1 }→ y :|: z' = x, z = 1, x >= 0, y >= 0, z'' = 1 + y
if(z, z', z'') -{ 2 }→ log2(0, y) :|: z'' = y, y >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, y) :|: z'' = y, y >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(x2), y) :|: z'' = y, z' = 1 + (1 + x2), y >= 0, z = 0, x2 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(x) :|: x >= 0, z = 1 + x
le(z, z') -{ 1 }→ le(x, y) :|: z' = 1 + y, x >= 0, y >= 0, z = 1 + x
le(z, z') -{ 1 }→ 1 :|: y >= 0, z = 0, z' = y
le(z, z') -{ 1 }→ 0 :|: x >= 0, z = 1 + x, z' = 0
log(z) -{ 1 }→ log2(x, 0) :|: x >= 0, z = x
log2(z, z') -{ 3 }→ if(le(x', 0), 1 + x', 0) :|: z = 1 + x', x' >= 0, z' = 0
log2(z, z') -{ 3 }→ if(le(x', 0), 1 + x', 1 + inc(x1)) :|: z = 1 + x', x1 >= 0, x' >= 0, z' = 1 + x1
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(x'')) :|: z' = 1 + x'', x'' >= 0, z = 0
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 }→ le(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 0) :|: z - 1 >= 0, z' = 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 1 + inc(z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
{ le } { half } { inc } { log2, if } { log } |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 }→ le(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 0) :|: z - 1 >= 0, z' = 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 1 + inc(z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 }→ le(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 0) :|: z - 1 >= 0, z' = 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 1 + inc(z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: ?, size: O(1) [1] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 }→ le(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 0) :|: z - 1 >= 0, z' = 0
log2(z, z') -{ 3 }→ if(le(z - 1, 0), 1 + (z - 1), 1 + inc(z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: ?, size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ 1 }→ 1 + half(z - 2) :|: z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 2 }→ log2(1 + half(z' - 2), z'') :|: z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: ?, size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 }→ 1 + inc(z - 1) :|: z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 }→ if(s'', 1 + (z - 1), 1 + inc(z' - 1)) :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 }→ if(1, 0, 1 + inc(z' - 1)) :|: z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 + z' }→ if(s'', 1 + (z - 1), 1 + s5) :|: s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 + z' }→ if(1, 0, 1 + s4) :|: s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 + z' }→ if(s'', 1 + (z - 1), 1 + s5) :|: s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 + z' }→ if(1, 0, 1 + s4) :|: s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] log2: runtime: ?, size: O(n1) [z'] if: runtime: ?, size: O(n1) [z''] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 2 }→ log2(0, z'') :|: z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 1 + z' }→ log2(1 + s2, z'') :|: s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 1 }→ log2(z, 0) :|: z >= 0
log2(z, z') -{ 4 }→ if(s', 1 + (z - 1), 0) :|: s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
log2(z, z') -{ 4 + z' }→ if(s'', 1 + (z - 1), 1 + s5) :|: s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 3 }→ if(1, 0, 0) :|: z = 0, z' = 0
log2(z, z') -{ 3 + z' }→ if(1, 0, 1 + s4) :|: s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] log2: runtime: O(n2) [5 + 6·z + z·z' + z2 + z'], size: O(n1) [z'] if: runtime: O(n2) [7 + 5·z' + z'·z'' + z'2 + z''], size: O(n1) [z''] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 7 + z'' }→ s11 :|: s11 >= 0, s11 <= 1 * z'', z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 7 + z'' }→ s12 :|: s12 >= 0, s12 <= 1 * z'', z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 13 + 8·s2 + s2·z'' + s22 + z' + 2·z'' }→ s13 :|: s13 >= 0, s13 <= 1 * z'', s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 6 + 6·z + z2 }→ s6 :|: s6 >= 0, s6 <= 1 * 0, z >= 0
log2(z, z') -{ 12 + s5 + s5·z + 6·z + z2 + z' }→ s10 :|: s10 >= 0, s10 <= 1 * (1 + s5), s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 10 }→ s7 :|: s7 >= 0, s7 <= 1 * 0, z = 0, z' = 0
log2(z, z') -{ 11 + s4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * (1 + s4), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
log2(z, z') -{ 11 + 5·z + z2 }→ s9 :|: s9 >= 0, s9 <= 1 * 0, s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] log2: runtime: O(n2) [5 + 6·z + z·z' + z2 + z'], size: O(n1) [z'] if: runtime: O(n2) [7 + 5·z' + z'·z'' + z'2 + z''], size: O(n1) [z''] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 7 + z'' }→ s11 :|: s11 >= 0, s11 <= 1 * z'', z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 7 + z'' }→ s12 :|: s12 >= 0, s12 <= 1 * z'', z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 13 + 8·s2 + s2·z'' + s22 + z' + 2·z'' }→ s13 :|: s13 >= 0, s13 <= 1 * z'', s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 6 + 6·z + z2 }→ s6 :|: s6 >= 0, s6 <= 1 * 0, z >= 0
log2(z, z') -{ 12 + s5 + s5·z + 6·z + z2 + z' }→ s10 :|: s10 >= 0, s10 <= 1 * (1 + s5), s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 10 }→ s7 :|: s7 >= 0, s7 <= 1 * 0, z = 0, z' = 0
log2(z, z') -{ 11 + s4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * (1 + s4), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
log2(z, z') -{ 11 + 5·z + z2 }→ s9 :|: s9 >= 0, s9 <= 1 * 0, s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] log2: runtime: O(n2) [5 + 6·z + z·z' + z2 + z'], size: O(n1) [z'] if: runtime: O(n2) [7 + 5·z' + z'·z'' + z'2 + z''], size: O(n1) [z''] log: runtime: ?, size: O(1) [0] |
half(z) -{ 1 }→ 0 :|: z = 0
half(z) -{ 1 }→ 0 :|: z = 1 + 0
half(z) -{ z }→ 1 + s1 :|: s1 >= 0, s1 <= 1 * (z - 2), z - 2 >= 0
if(z, z', z'') -{ 7 + z'' }→ s11 :|: s11 >= 0, s11 <= 1 * z'', z'' >= 0, z = 0, z' = 0
if(z, z', z'') -{ 7 + z'' }→ s12 :|: s12 >= 0, s12 <= 1 * z'', z'' >= 0, z' = 1 + 0, z = 0
if(z, z', z'') -{ 13 + 8·s2 + s2·z'' + s22 + z' + 2·z'' }→ s13 :|: s13 >= 0, s13 <= 1 * z'', s2 >= 0, s2 <= 1 * (z' - 2), z'' >= 0, z = 0, z' - 2 >= 0
if(z, z', z'') -{ 1 }→ z'' - 1 :|: z = 1, z' >= 0, z'' - 1 >= 0
inc(z) -{ 1 }→ 0 :|: z = 0
inc(z) -{ 1 + z }→ 1 + s3 :|: s3 >= 0, s3 <= 1 * (z - 1), z - 1 >= 0
le(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 1, z - 1 >= 0, z' - 1 >= 0
le(z, z') -{ 1 }→ 1 :|: z' >= 0, z = 0
le(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0
log(z) -{ 6 + 6·z + z2 }→ s6 :|: s6 >= 0, s6 <= 1 * 0, z >= 0
log2(z, z') -{ 12 + s5 + s5·z + 6·z + z2 + z' }→ s10 :|: s10 >= 0, s10 <= 1 * (1 + s5), s5 >= 0, s5 <= 1 * (z' - 1), s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
log2(z, z') -{ 10 }→ s7 :|: s7 >= 0, s7 <= 1 * 0, z = 0, z' = 0
log2(z, z') -{ 11 + s4 + z' }→ s8 :|: s8 >= 0, s8 <= 1 * (1 + s4), s4 >= 0, s4 <= 1 * (z' - 1), z' - 1 >= 0, z = 0
log2(z, z') -{ 11 + 5·z + z2 }→ s9 :|: s9 >= 0, s9 <= 1 * 0, s' >= 0, s' <= 1, z - 1 >= 0, z' = 0
le: runtime: O(n1) [1 + z'], size: O(1) [1] half: runtime: O(n1) [1 + z], size: O(n1) [z] inc: runtime: O(n1) [1 + z], size: O(n1) [z] log2: runtime: O(n2) [5 + 6·z + z·z' + z2 + z'], size: O(n1) [z'] if: runtime: O(n2) [7 + 5·z' + z'·z'' + z'2 + z''], size: O(n1) [z''] log: runtime: O(n2) [6 + 6·z + z2], size: O(1) [0] |